package com.tbit.uqbike.object.view.sugar;

/**
 * @author MyWin E-mail:335918956@qq.com
 * @version 1.0
 * @createTime 2019-12-16 18:55
 */
public class SugarResult {
    public static final int SUCC = 0;

    // 0 表示成功 非0表示失败
    private Integer status;
    // 失败时的提示信息
    private String msg;
    // 数据
    private Object data;

    public static SugarResult ok(Object data) {
        SugarResult sr = new SugarResult();
        sr.status = SugarResult.SUCC;
        if (null == data) {
            data = new Object();
        }
        sr.data = data;
        return sr;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
